package com.dynamic.sync.toolkit.mongo.property;

import com.dynamic.sync.toolkit.EnvType;
import lombok.Getter;
import lombok.Setter;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.context.annotation.Configuration;
import org.springframework.context.annotation.PropertySource;

/**
 * @author ZonLen since on 2021/6/19 下午7:54
 */
@Getter
@Setter
@Configuration
@PropertySource("classpath:application-prd.properties")
@ConfigurationProperties(prefix = "spring.data.mongodb.prd")
public class PrdMongoProperties extends EnvMongoProperties{

  @Override
  public EnvType envType() {
    return EnvType.prd;
  }
}
